package com.app.brilliant.game.mapper;
import com.app.brilliant.game.bean.BriClassHour;
import com.app.brilliant.game.response.BriClassHourWithNextInfo;
import com.app.brilliant.game.response.BriClassHourWithType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * 课时Mapper接口
 */
public interface BriClassHourMapper extends BaseMapper<BriClassHour> {
    List<BriClassHourWithType> getClassHourDetailsByCourseId(@Param("courseId") Integer courseId);

    /**
     * 获取完成度最高的课时数据
     * @param uid 用户ID
     * @param limit 返回的数据条目数
     * @return 课时数据列表（包含课程、课时类型信息）
     */
    List<BriClassHourWithNextInfo> getTopCompletionClassHours(@Param("uid") Integer uid, @Param("limit") Integer limit);

    BriClassHour getUnCompleteNextClassHour(@Param("id")Integer id);
}